#!/usr/bin/python
# -*- coding:utf-8 -*-

import requests
from conf.settings import WX_URL


def notify(message):
    data = {
        "msgtype": "text",
        "text": {"content": message}
    }
    response = requests.post(url=WX_URL, json=data)
    return response.status_code

